package com.qf.fmw.controller;

import com.qf.fmw.entity.vo.RespResult;
import com.qf.fmw.service.MessageService;
import com.qf.fmw.service.impl.MessageServiceImpl;
import com.qf.fmw.servlet.BaseServlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


public class UserController extends BaseServlet {
    private MessageService messageService = new MessageServiceImpl();

    protected RespResult getMessage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        return messageService.showMessage(Integer.parseInt(request.getParameter("userId")));
    }
}
